/*
 * @Author: 9ilk 3535851673@qq.com
 * @Date: 2024-11-05 16:57:52
 * @LastEditors: 9ilk 3535851673@qq.com
 * @LastEditTime: 2024-11-06 20:11:57
 * @FilePath: /zhuang/namePipe/Client.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "Client.hpp"
#include <iostream>
#include <string>
using namespace std;

int main()
{
    Client client;
    client.OpenPipeForWrite();
    //
    string message;
    while (true)
    {
        cout << "Please Enter..";
        std::getline(cin, message);
        client.SendPipe(message);
    }
    client.ClosePipe();
    return 0;
}
